package org.patterns.behavior.command;


//最小化命令类：具体命令类
class MinimizeCommand extends Command {
    private WindowHandler handler; //维持对请求接收者的引用

    public MinimizeCommand() {
        handler = new WindowHandler();
    }

    //命令执行方法，将调用请求接收者的业务方法
    public void execute() {
        handler.minimize();
    }
}